//
//  BGAttentionViewController.m
//  bigMall
//
//  Created by ios on 16/7/19.
//  Copyright © 2016年 thinklev. All rights reserved.
//

#import "BGAttentionViewController.h"
#import "BGAttentionBasicViewController.h"
#import "BGDateResult.h"

@interface BGAttentionViewController ()

@end

@implementation BGAttentionViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.view.backgroundColor = [UIColor whiteColor];
    
//    self.pageAnimatable = NO;
    
    self.title = @"我的关注";
    
}

- (NSArray <NSString *> *)titles {
    
    return @[@"卖盘",@"买盘",@"拍卖"];
}

- (NSInteger)numbersOfChildControllersInPageController:(WMPageController *)pageController {
    
    self.menuItemWidth = self.view.bounds.size.width / 3;
    self.menuViewStyle = WMMenuViewStyleLine;
    self.titleColorNormal = [UIColor blackColor];
    self.titleColorSelected = [UIColor orangeColor];
    self.titleSizeSelected = 21;
    self.titleSizeNormal = 19;
    self.showOnNavigationBar = NO;
    self.menuHeight = 45;
    self.progressColor = [UIColor orangeColor];
//    self.scrollView.scrollEnabled = NO;
    
    return self.titles.count;
}

- (NSString *)pageController:(WMPageController *)pageController titleAtIndex:(NSInteger)index {
    
    return self.titles[index];
}

- (UIViewController *)initializeViewControllerAtIndex:(NSInteger)index {
    
    BGAttentionBasicViewController *a = [[BGAttentionBasicViewController alloc] init];
    
    if (index == 0) {
        
        a.type = @"goods";
       
        return a;
        
    }else if (index == 1) {
        
        a.type = @"invite";
        return a;
        
    }else {
        
        a.type = @"auction";
        return a;
        
    }
    
}
- (void)viewDidDisappear:(BOOL)animated {

}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
- (void)viewWillAppear:(BOOL)animated {
    self.tabBarController.tabBar.hidden = YES;
//    [UIApplication sharedApplication].statusBarHidden = YES;
}
/*
 #pragma mark - Navigation
 
 // In a storyboard-based application, you will often want to do a little preparation before navigation
 - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
 // Get the new view controller using [segue destinationViewController].
 // Pass the selected object to the new view controller.
 }
 */

@end
